package com.haiyou.data.common.persister.mysql.persister.delay;

import org.springframework.stereotype.Component;

import com.haiyou.common.spring.component.LifecycleableComponent;
import com.haiyou.common.spring.schedule.ActorScheduledExecutor;

import lombok.extern.slf4j.Slf4j;

@Slf4j
@Component
public class DelayPersisterObserver implements LifecycleableComponent {

	@Override
	public void init() {
		
	}

	@Override
	public void destory() {
		((ActorScheduledExecutor) DelayQueuePreparedPersister.scheduler()).shutdownGracefully();
	}

}
